/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 *																 *
 *	TrabP2 - Trabalho P2										 *
 *																 *
 *	File:		main.cpp										 *
 *	Authors:	Rafael Kikuchi ( shinjikik@gmail.com )			 *
 *				Rafael Romeiro ( rafaelromeiro@gmail.com )		 *
 *	Date:		24/10/2008										 *
 *	License:	CC-GNU LGPL										 *
 *				http://creativecommons.org/licenses/LGPL/2.1/	 *
 *	Version:	0.1.0											 *
 *																 *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#include <iostream>
#include "Estudo1.h"
#include "Estudo2.h"

using namespace std;

int main(int argc, char* argv[])
{
	Estudo1 E1;
	Estudo2 E2;

	bool Directed = r2UNDIRECTED;
	int StructType = r2LIST;
	int jazzFrom[5] = {10, 20, 30, 40, 50};
	int jazzTo[5] = {3, 14, 15, 92, 65};
	int proteinFrom[5] = {100, 200, 300, 401, 500};
	int proteinTo[5] = {179, 827, 54, 2, 10};

	cout << "Estudo de caso 1" << endl;
	cout << "----------------" << endl;
	cout << endl;
	E1.init(Directed, StructType, "as-rel.20080811.a0.01000.txt");
	E1.go();
	E1.release();

	E1.init(Directed, StructType, "as-rel.20080818.a0.01000.txt");
	E1.go();
	E1.release();

	cout <<endl;

	cout << "Estudo de caso 2" << endl;
	cout << "----------------" << endl;
	cout << endl;
	E2.init(Directed, StructType, "jazz.txt");
	E2.go(jazzFrom, jazzTo);
	E2.release();
	
	E2.init(Directed, StructType, "protein.txt");
	E2.go(proteinFrom, proteinTo);
	E2.release();

	return 0;
}